<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>登录</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="Hosting Store Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template,
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" />
    <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
    <link href="${pageContext.request.contextPath}/static/home/css/bootstrap.css" rel='stylesheet' type='text/css' />
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <%--<script src="js/jquery-1.8.3.min.js"></script>--%>
    <script src="${pageContext.request.contextPath}/static/home/js/jquery-1.11.1.min.js"></script>
    <!-- Custom Theme files -->
    <link href="${pageContext.request.contextPath}/static/home/css/index_style.css" rel='stylesheet' type='text/css' />
    <!-- Custom Theme files -->

    <!-- webfonts -->
    <link href='${pageContext.request.contextPath}/static/home/css/font-awesome.css' rel='stylesheet' type='text/css'>
    <!-- webfonts -->
    <!-- dropdown -->
    <script src="${pageContext.request.contextPath}/static/home/js/jquery.easydropdown.js"></script>
    <script src="${pageContext.request.contextPath}/static/home/js/jquery-labelauty.js"></script>
    <link href="${pageContext.request.contextPath}/static/home/css/nav.css" rel="stylesheet" type="text/css" media="all"/>
    <link href="${pageContext.request.contextPath}/static/home/css/jquery-labelauty.css" rel='stylesheet' type='text/css' />
    <link href="${pageContext.request.contextPath}/static/home/css/passwordStyle.css" rel='stylesheet' type='text/css' />
    <link href="${pageContext.request.contextPath}/static/admin/css/sweetalert.css" rel="stylesheet">
    <script src="${pageContext.request.contextPath}/static/admin/js/sweetalert.min.js"></script>

    <!-- start-smoth-scrolling -->
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/home/js/move-top.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/home/js/easing.js"></script>
    <script type="text/javascript">
        jQuery(document).ready(function($) {
            $(".scroll").click(function(event){
                event.preventDefault();
                $('html,body').animate({scrollTop:$(this.hash).offset().top},1000);
            });
        });
    </script>
    <style>
        ul.a { list-style-type: none;}
        li.a { display: inline-block;}
        li.a { margin: 10px 0;}
        input.labelauty + label { font: 12px "Microsoft Yahei";}
        .login-right .labelauty-checked{
            color: #FFFFFF;
        }
    </style>
    <!-- end-smoth-scrolling -->
</head>
<!-- Header Starts Here -->
<div class="banner inner-banner" >
    <%@include file="header.jsp"%>
    <!-- page heading -->
    <div id="breadcrumb_wrapper">
        <div class="container">

            <h3 style="height: 100%">登录</h3>

            <div class="clearfix"></div>
        </div>
    </div>
</div>
<div class="clearfix"> </div>
<!-- Header Ends Here -->
<div class="login-content">
    <div class="container">
        <div class="login-page">
            <div class="account_grid">
                <div class="col-md-6 login-left wow fadeInLeft" data-wow-delay="0.4s">
                    <h3><strong>注册</strong></h3>
                    <p>如果你还没有账号，点击这里注册</p>
                    <a class="acount-btn" href="${pageContext.request.contextPath}/register/customer.action">个人用户注册</a>
                    <a class="acount-btn" href="${pageContext.request.contextPath}/register/company.action">企业用户注册</a>
                </div>
                <div class="col-md-6 login-right wow fadeInRight" data-wow-delay="0.4s">
                    <h3><strong>登录</strong></h3>
                    <p></p>
                    <form method="post" action="${pageContext.request.contextPath }/login.action">
                        <div>
                            <span>账号</span>
                            <input type="text" name="telephone" placeholder="账号"  value="<% String name = request.getParameter("telephone");if(name==null)name="";%><%=name%>">
                        </div>
                        <div style="padding-bottom: 20px">
                            <span>密码</span>
                            <input type="password" name="password" placeholder="密码">
                        </div>
                        <p style="color: red;margin-top: 0px;margin-bottom: 0px">${msg}</p>
                        <ul class="a dowebok">
                            <li class="a"><input type="radio" name="type" value="0" data-labelauty="普通用户" <% String type = request.getParameter("type");if(type == null || "0".equals(type)){ %>checked<% } %>></li>
                            <li class="a"><input type="radio" name="type" value="1" data-labelauty="企业用户" <% if("1".equals(type)){  %>checked<% } %>></li>
                        </ul>
                        <input style="margin-top: 10px" type="submit" value="登录">
                        <a class="forgot" href="#">忘记了密码?</a>
                    </form>
                </div>
                <div class="clearfix"> </div>
            </div>
        </div>
    </div>
</div>

<!-- #Testimonials -->
<!-- /#Testimonials -->
<!-- #Footer -->
<%@include file="footer.jsp"%>
<!-- /#Footer -->
<!-- here stars scrolling icon -->
<script type="text/javascript">
    $(document).ready(function() {
        /*
         var defaults = {
         containerID: 'toTop', // fading element id
         containerHoverID: 'toTopHover', // fading element hover id
         scrollSpeed: 1200,
         easingType: 'linear'
         };
         */

        $().UItoTop({ easingType: 'easeOutQuart' });

    });
</script>
<script>
    $(function(){
        $(':input').labelauty();
    });

    <c:if test="${error==1}">
        swal("","你的账号已经被封，请转百万到支付宝后联系客服进行解封！！！","error");
    </c:if>
</script>
<!-- //here ends scrolling icon -->
</body>
</html>